<?php
/**
 * Created by PhpStorm.
 * User: titarzhe
 * Date: 18-4-18
 * Time: 上午10:30
 */
namespace AppBundle\Entity;

/**
 * 无限极分类
 * Trait Sortable
 * @package AppBundle\Entity
 */
trait Sortable{
    /**
     * @var integer
     *
     * @ORM\Column(name="fid", type="integer", nullable=false)
     */
    private $fid;

    /**
     * @var string
     * @Gedmo\Treeable
     * @ORM\Column(name="sort", type="text", length=65535, nullable=false)
     */
    private $sort;


    /**
     * @param $parent self
     */
    public function setParent($parent)
    {
        
    }
    /**
     * Set fid
     *
     * @param integer $fid
     *
     * @return mixed
     */
    public function setFid($fid)
    {
        $this->fid = $fid;

        return $this;
    }

    /**
     * Get fid
     *
     * @return integer
     */
    public function getFid()
    {
        return $this->fid;
    }


    /**
     * Get sort
     *
     * @return string
     */
    public function getSort()
    {
        return $this->sort;
    }
}